.checkin-module {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Arial', sans-serif;
}

.checkin-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: white;
}

.checkin-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.checkin-calendar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* 统计信息 */
.checkin-stats {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 0.9em;
  margin-top: 5px;
  opacity: 0.9;
}

/* 签到按钮 */
.checkin-action {
  text-align: center;
}

.checkin-btn {
  background: linear-gradient(45deg, #ff4757, #ff3838);
  color: white;
  border: none;
  padding: 15px 50px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.checkin-btn:hover:not(:disabled) {
  background: linear-gradient(45deg, #ff3838, #ff2f2f);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 71, 87, 0.6);
}

.checkin-btn.checked {
  background: linear-gradient(45deg, #2ed573, #1e90ff);
  cursor: not-allowed;
}

.checkin-btn:disabled {
  opacity: 0.7;
  transform: none;
}

/* 日历网格 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.calendar-weekday {
  text-align: center;
  font-weight: bold;
  padding: 10px;
  font-size: 0.9em;
  opacity: 0.8;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
  min-height: 60px;
  background: rgba(255, 255, 255, 0.1);
}

.calendar-day.empty {
  background: transparent;
}

.calendar-day.past {
  opacity: 0.6;
}

.calendar-day.future {
  opacity: 0.4;
  background: rgba(255, 255, 255, 0.05);
}

.calendar-day.today {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #333;
  font-weight: bold;
  cursor: pointer;
  animation: pulse 2s infinite;
}

.calendar-day.today:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.calendar-day.checked {
  background: linear-gradient(45deg, #2ed573, #17c0eb);
  color: white;
  font-weight: bold;
}

.calendar-day.checked.today {
  background: linear-gradient(45deg, #2ed573, #17c0eb);
  color: white;
  cursor: default;
  animation: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.day-number {
  font-size: 1.1em;
  z-index: 2;
}

.check-mark {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(255, 255, 255, 0.9);
  color: #2ed573;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.checkin-hint {
  position: absolute;
  bottom: 2px;
  font-size: 0.7em;
  opacity: 0.8;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 0.8; }
  25%, 75% { opacity: 0.4; }
}

/* 奖励弹窗 */
.reward-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(45deg, #ff6b6b, #feca57);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: popIn 0.5s ease-out;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.reward-content {
  text-align: center;
  color: white;
}

.reward-content h3 {
  margin: 0 0 15px 0;
  font-size: 1.8em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.reward-content p {
  margin: 10px 0;
  font-size: 1.2em;
  font-weight: bold;
}

.streak-bonus {
  color: #ffd700 !important;
  font-size: 1.1em !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* 签到规则 */
.checkin-rules {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.checkin-rules h4 {
  margin: 0 0 15px 0;
  font-size: 1.3em;
  color: #ffd700;
}

.checkin-rules ul {
  margin: 0;
  padding-left: 20px;
}

.checkin-rules li {
  margin: 8px 0;
  opacity: 0.9;
  line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .checkin-module {
    padding: 10px;
  }
  
  .checkin-container {
    padding: 20px;
  }
  
  .checkin-title {
    font-size: 2em;
  }
  
  .checkin-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .stat-number {
    font-size: 2em;
  }
  
  .calendar-grid {
    gap: 4px;
    padding: 15px;
  }
  
  .calendar-day {
    min-height: 45px;
  }
  
  .day-number {
    font-size: 1em;
  }
  
  .checkin-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
  
  .reward-popup {
    margin: 20px;
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
  }
}